package com.ybxx.base.model;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.ybxx.core.model.BaseModel;

@Entity
@Table(name="tbl_base_res_hydropower")
public class ResHydropower extends BaseModel {
	@Id
	private String rhid;
	@ManyToOne(targetEntity=Residents.class,fetch=FetchType.LAZY)
	@JoinColumn(name="rcode",referencedColumnName="rcode") 
	private Residents residents;
	@ManyToOne(targetEntity=Type.class,fetch=FetchType.EAGER)
	@JoinColumn(name="tid",referencedColumnName="tid") 
	private Type type;
	private String rmin;
	private String rmax;
	private String price;
	public String getRhid() {
		return rhid;
	}
	public void setRhid(String rhid) {
		this.rhid = rhid;
	}
	public Residents getResidents() {
		return residents;
	}
	public void setResidents(Residents residents) {
		this.residents = residents;
	}
	public Type getType() {
		return type;
	}
	public void setType(Type type) {
		this.type = type;
	}
	public String getRmin() {
		return rmin;
	}
	public void setRmin(String rmin) {
		this.rmin = rmin;
	}
	public String getRmax() {
		return rmax;
	}
	public void setRmax(String rmax) {
		this.rmax = rmax;
	}
	public String getPrice() {
		return price;
	}
	public void setPrice(String price) {
		this.price = price;
	}
	
	
}
